/*
 * PBsucarUsuario.java
 *
 * Created on 16 de mayo de 2006, 01:57 PM
 */

package ig.metrica.ui.seguridad;

import ig.metrica.ui.interfaces.comunes.IMetodosPantallas;
import ig.metrica.ui.pantallas.comunes.ManipulacionDatos;
import ig.util.CodigoBotones;
import ig.util.NoContinuaException;
import java.awt.Component;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;

/**
 *
 * @author  jsanchez
 */
public class PBsucarUsuario extends javax.swing.JPanel implements IMetodosPantallas {
    MUsuarios modelo=null;
    /** Creates new form PBsucarUsuario */
    ManipulacionDatos mpd=null;
    public PBsucarUsuario(MUsuarios modelo){
        //super(modelo.getRootPanel(),true);
        initComponents();
//        mpd=new ManipulacionDatos(true,false);
//        mpd.setLimpiarComponentes(false);
//        //mpd.setConfimacioSalir(true,"Desea cerrar la ventana de Geneacion de Escenarios");
//        mpd.setPanelMetodosPantalla(this);
//        mpd.setSize(400,200);
//        mpd.setTitle("Escenarios");
//        mpd.setEstado(CodigoBotones.grupoNuevoSalir);
        this.modelo=modelo;    
        this.setVisible(true);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        jScrollPane1 = new javax.swing.JScrollPane();
        Tabla = new javax.swing.JTable();

        setBackground(new java.awt.Color(255, 255, 255));
        Tabla.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Usuario", "Nombres", "Apellidos"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        Tabla.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                TablaMouseClicked(evt);
            }
        });

        jScrollPane1.setViewportView(Tabla);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap(13, Short.MAX_VALUE)
                .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 262, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void TablaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_TablaMouseClicked
        if(evt.getClickCount()==2){//Doble click en la tabla
            
        }
    }//GEN-LAST:event_TablaMouseClicked

    public JInternalFrame getInternalFrame() {
        return mpd;
    }

    public void validar() throws NoContinuaException {
    }

    public void guardar() throws NoContinuaException {
    }

    public void buscar() throws NoContinuaException {
        
    }

    public void modificar() throws NoContinuaException {
    }

    public void nuevo() throws NoContinuaException {
    }

    public void eliminar() throws NoContinuaException {
    }

    public void salir() throws NoContinuaException {
    }

    public void imprimir() throws NoContinuaException {
    }

    public void cancelar() throws NoContinuaException {
    }

    public Component[] getControles() {
        return null;
    }

    public void setFrame(JFrame frame) {
    }

    public JFrame getFrame() {
        return null;
    }
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTable Tabla;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration//GEN-END:variables

    @Override
    public Object getObjectToXML() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void setObjectToXML(Object object) {
        throw new UnsupportedOperationException("Not supported yet.");
    }    
    
    @Override
    public String getExtencionExportacion() {
        throw new UnsupportedOperationException("Not supported yet.");
    }    
    
    @Override
    public String getNombreExportacion() {
        throw new UnsupportedOperationException("Not supported yet.");
    }    
}
